﻿hello word
<br />
<?php  

$link=mysql_connect("10.4.12.46","uTUkU0p0JvBAA","p9Z9Ai8zQnlJ4");   
if(!$link) echo "没有连接成功!";   
else echo "数据库连接成功!";   


mysql_select_db("d8dad33ef38c247199bc5e3fee5fc277b", $link);          //选择数据库  
$q = "SELECT * FROM Test";                   //SQL查询语句  
//mysql_query("SET NAMES GB2312");           
$rs = mysql_query($q, $link);                     //获取数据集  
if(!$rs){die("Valid result!");}  
echo "<table border='1'>";  
echo "<tr><td>Id</td><td>Name</td></tr>";  
while($row = mysql_fetch_row($rs)) 
	echo "<tr><td>$row[0]</td><td>$row[1]</td></tr>";   //显示数据  
echo "</table>";  
mysql_free_result($rs);                    //关闭数据集  



?> 

<br />
<?php 
	phpinfo();
?>